package Com.amit.Thread;

public class Lab9 extends Thread {

	@Override
	public void run() {
		
		System.out.println("running thread name is:"+Thread.currentThread().getName());
		System.out.println("running thread priority is:"+Thread.currentThread().getPriority());
		
		
	}
	
	public static void main(String[] args) {
		
		
		Lab9 t1=new Lab9();
		Lab9 t2=new Lab9();
		Lab9 t3=new Lab9();
		
		t1.setPriority(MIN_PRIORITY);
		t2.setPriority(NORM_PRIORITY);
		t3.setPriority(MAX_PRIORITY);
		
		t1.start();
		t2.start();
		t3.start();
		
		

	}

}
